<?php

	require_once('common/connectdb.php');

	$ConnectDB = new ConnectDB();
	$qTypes = "SELECT * FROM tb_reportType";
	$rTypes = $ConnectDB->run_query($qTypes);

	if(mysql_num_rows($rTypes)!=0)
	{	
		//echo"<newsList>";
		echo"<TYPELIST>";
		while ($row = mysql_fetch_assoc($rTypes))
		{
			echo "\n\t<TYPE>"; 
 			echo "\n\t\t<ID>".$row["reportType_id"]."</ID>";
			echo "\n\t\t<DESCRIPTION>".$row["reportType_description"]."</DESCRIPTION>";
			echo "\n\t</TYPE>\n";
		}
		echo"</TYPELIST>";	
	} 
	else 
	{
		echo "<code>1</code>";
	}
?>

	
